import { FetchMaterialListData } from "./apiTypes"
import request from "/@/utils/request"

/**
 * 获取工艺路线主表
 * @param data
 */
export function getItemRouteHeaderList(data?: any) {
    return request({
        url: '/wms/itemRoute/GetItemRouteHeaderList',
        method: 'post',
        data: data
    })
}

/**
 * 获取工艺路线主表
 * @param data
 */
export function getItemRouteDetailListByRouteHId(data?: any) {
    return request({
        url: '/wms/itemRoute/GetItemRouteDetailListByRouteHId',
        method: 'post',
        data: data
    })
}

/**
 * 检查导入的工艺路线
 * @param data
 */
export function checkImportItemRoute(data?: any) {
    return request({
        url: '/wms/itemRoute/CheckImportItemRoute',
        method: 'post',
        data: data
    })
}

/**
 * 保存工艺路线和工序bom
 * @param data
 */
export function saveItemRouteAndProcessBom(data?: any) {
    return request({
        url: '/wms/itemRoute/SaveItemRouteAndProcessBom',
        method: 'post',
        data: data
    })
}